home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / frame_62 / PlaceObject2_3569_574 / CLIPACTIONRECORD onClipEvent(keyDown).as < prev   
Encoding:
Text File  |  2011-06-09  |  784 b   |  27 lines

  1. onClipEvent(keyDown){
  2.    if(!(Key.isDown(39) || Key.isDown(37) || Key.isDown(40)))
  3.    {
  4.       if(Key.isDown(38) && this._currentframe >= 25 && this._currentframe < 30)
  5.       {
  6.          _root.star_load_x = 225;
  7.          _root.star_load_y = 280;
  8.          count = 0;
  9.          while(count < 20)
  10.          {
  11.             count++;
  12.             _root.eye = _root.eye + 1;
  13.             duplicateMovieClip(_root.orig,star + _root.eye,16384 + _root.eye);
  14.          }
  15.          _root.hewwy.gotoAndStop(frame);
  16.          _root.dm = random(4) + 1;
  17.          if(_root.dm == MyNumber)
  18.          {
  19.             _root.dm = 4;
  20.          }
  21.          _root["dm" + _root.dm].gotoAndPlay(1);
  22.          this.gotoAndStop(1);
  23.          _root.score += (30 - this._currentframe) / 5;
  24.       }
  25.    }
  26. }
  27.